package com.trkj.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.trkj.pojo.Outbox;

public interface OutboxDAO extends JpaRepository<Outbox, Integer>,JpaSpecificationExecutor<Outbox> {
	@Query("select o from Outbox o where o.email.emailId=?1")
	public Outbox reserverisornotdeleted(Integer emailid);
	
	/*@Query("delete from Outbox o where o.email.emailId=?1")
	public void deletebyemailid(Integer emailid);*/
}
